﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MOBAServer.Model
{
    public class PlayerModel
    {
        private int id;
        private string name;
        private int level;
        private int power;
        private int winCount = 0;
        private int loseCount = 0;
        private int runCount = 0;
        private int exp;
        private List<int> heroIdList;
        private List<int> friendIdList;
        private int accountID;

        #region Property
        public int Id
        {
            get => id;
            set => id = value;
        }
        public string Name
        {
            get => name;
            set => name = value;
        }
        public int Level
        {
            get => level;
            set => level = value;
        }
        public int Power
        {
            get => power;
            set => power = value;
        }
        public int WinCount
        {
            get => winCount;
            set => winCount = value;
        }
        public int LoseCount
        {
            get => loseCount;
            set => loseCount = value;
        }
        public int RunCount
        {
            get => runCount;
            set => runCount = value;
        }
        public int Exp
        {
            get => exp;
            set => exp = value;
        }
        public List<int> HeroIdList
        {
            get => heroIdList;
            set => heroIdList = value;
        }
        public List<int> FriendIdList
        {
            get => friendIdList;
            set => friendIdList = value;
        }
        public int AccountID
        {
            get => accountID;
            set => accountID = value;
        } 
        #endregion
        public PlayerModel()
        {

        }
        public PlayerModel(int id,string name,int accID)
        {
            this.Id = id;
            this.Name = name;
            this.Level = 0;
            this.Power = 2000;
            this.WinCount = 0;
            this.RunCount = 0;
            this.LoseCount = 0;
            this.Exp = 0;
            this.HeroIdList = new List<int>() { 1,2};
            this.FriendIdList = new List<int>();
            this.AccountID = accID;
        }
    }
}
